package cn.yzfy.common.model.vo;

import cn.yzfy.common.base.vo.BaseIdAndTimeAndOperationVO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.io.Serial;

/**
 * @author 一朝风月
 * @date 2025/9/11 19:39
 * @Code 面向注解面向卿，终无解释再无你
 * @description 用户评论展示层
 */

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class CommentVO extends BaseIdAndTimeAndOperationVO {

    @Serial
    private static final long serialVersionUID = -3333857978730556851L;

    /**
     * 头像URL
     */
    @Schema(description = "头像URL")
    private String avatarUrl;

    /**
     * 评论内容
     */
    @Schema(description = "评论内容")
    private String content;

    /**
     * 删除标记
     */
    @Schema(description = "删除标记")
    private Byte deleted;

    /**
     * 父评论的id
     */
    @Schema(description = "父评论的id")
    private Long parentId;

    /**
     * 帖子ID
     */
    @Schema(description = "帖子ID")
    private Long postId;

    /**
     * 备注
     */
    @Schema(description = "备注")
    private String remark;

    /**
     * 用户ID
     */
    @Schema(description = "用户ID")
    private Long userId;

    /**
     * 用户名
     */
    @Schema(description = "用户名")
    private String username;
}